using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;
using Abp.Domain.Entities;

namespace Dyan.PlatformSystem.Customers
{
	[Table("CustomerAccounts")]
    public class CustomerAccount : Entity<Guid> , IMustHaveTenant
    {
			public int TenantId { get; set; }
			

		[StringLength(CustomerAccountConsts.MaxNameLength, MinimumLength = CustomerAccountConsts.MinNameLength)]
		public virtual string Name { get; set; }
		
		[StringLength(CustomerAccountConsts.MaxEmailLength, MinimumLength = CustomerAccountConsts.MinEmailLength)]
		public virtual string Email { get; set; }
		
		[StringLength(CustomerAccountConsts.MaxPhoneNumLength, MinimumLength = CustomerAccountConsts.MinPhoneNumLength)]
		public virtual string PhoneNum { get; set; }
		
		[StringLength(CustomerAccountConsts.MaxPassWordLength, MinimumLength = CustomerAccountConsts.MinPassWordLength)]
		public virtual string PassWord { get; set; }
		

    }
}